#include <iostream>
#include <string>
using namespace std;

class Test{
public:
	string repalceNumber(string str){
		int num = 0;
		for(int i = 0;i < str.size();i++){
			if(str[i] >= '0' && str[i] <= '9'){
				num++;
			}
		}
		int originLength = str.size();
		str.resize(str.size() + num * 5);
		int slow = str.size()-1;
		for(int fast = originLength - 1;fast > 0;fast--){
			if(str[fast] >= '0' && str[fast] <= '9'){
				str[slow] = 'r';
				str[slow-1] = 'e';
				str[slow-2] = 'b';
				str[slow-3] = 'm';
				str[slow-4] = 'u';
				str[slow-5] = 'n';
				slow-=5;
			}else{
				str[slow] = str[fast];
			}
			slow--;
		}
		return str;
	}
};
